package query;

public class Query {
	
	private static String buildPhrase(String[] words) {
		
		String phrase = words[0];
		for(int i = 1; i< words.length; i++){
			phrase = phrase + " " + words[i];
		}
		
		return phrase;
	}
	
	String queryString;
	AnalyzedQuestion questionAnalysis;
	
	public AnalyzedQuestion getQuestionAnalysis() {
		return questionAnalysis;
	}

	public Query (AnalyzedQuestion aq) {
		
		this.questionAnalysis = aq;
		this.queryString = buildPhrase(aq.getKeywords());
		
	}
	
	/****************************************/
	
	public String getQueryString() {
		return queryString;
	}

}
